<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common.jsp"%>
<script type="text/javascript"
	src="/LarryMS/business/js/systemsetup/permissionsmanage/permissions/add.js"></script>
<link rel="stylesheet" type="text/css"
	href="/LarryMS/business/common/ztree/css/zTreeStyle/zTreeStyle.css"
	media="all">
</head>
<body>
	<div class="layui-row layui-col-space10">
		<div class="layui-col-sm3 ">
			<fieldset class="layui-elem-field">
				<legend>权限</legend>
				<div class="layui-field-box">
					<ul id="treeDemo" class="ztree"></ul>
				</div>
			</fieldset>
		</div>
		<div class="layui-col-sm9 ">
			<fieldset class="layui-elem-field">
				<legend>添加</legend>
				<form class="layui-form">
					<input type="hidden" name="pid" id="pid" value="0"> <input
						type="hidden" name="status" value="1">
					<div class="layui-form-item">
						<label class="layui-form-label">名称</label>
						<div class="layui-input-block">
							<input type="text" name="name" lay-verify="title"
								autocomplete="off" placeholder="请输入名称" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">类型</label>
						<div class="layui-input-block">
							<select name="type" lay-filter="aihao">
								<option value="1">目录</option>
								<option value="2">菜单</option>
								<option value="3">按钮</option>
							</select>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">权限值</label>
						<div class="layui-input-block">
							<input type="text" name="permissionValue" lay-verify="title"
								autocomplete="off" placeholder="请输入标题" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">路径</label>
						<div class="layui-input-block">
							<input type="text" name="uri" lay-verify="title"
								autocomplete="off" placeholder="请输入访问路径" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">图标</label>
						<div class="layui-input-block">
							<input type="text" name="icon" lay-verify="title"
								autocomplete="off" placeholder="请输入图标Icon" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">排序</label>
						<div class="layui-input-block">
							<input type="text" name="orders" lay-verify="title"
								autocomplete="off" placeholder="请输入排序" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<shiro:hasPermission
								name="systemsetup_permissionsmanage_permissions_adminPermission">
								<button class="layui-btn" lay-submit=""
									lay-filter="PermissionsAdd">添加</button>
								<button type="reset" class="layui-btn layui-btn-primary">重置</button>
							</shiro:hasPermission>


						</div>
					</div>

				</form>

			</fieldset>
		</div>
	</div>

</body>
</html>